package com.newsystem.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class NewsCover {
    private String id;
    private String newsId;
    private String coverUrl;
    private String title;

    @JsonFormat(pattern = "yyyy-MM--dd hh:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @JsonFormat(pattern = "yyyy-MM--dd hh:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;
}
